/***************************************************
 @Name :        小铭同学
 @Time :        2022-10-30
 @Email :       LiaoMingWJ233@163.com
 @Comment :     底盘循迹控制功能、转弯功能的外部接口
 @FileName :    track.h
 @Version :     1.0
****************************************************/


#ifndef _TRACK_H
#define _TRACK_H

#include "system.h"


typedef enum
{
  stop          = 0,
	speed_lowz    = 300,
  speed_low     = 400,
	speed_medium1 = 600,
  speed_medium  = 500,//500
  speed_high    = 1000,
} track_speed_t;

void drive(track_speed_t s);

void track_drive(track_speed_t s);

void track_drive1(track_speed_t s);

void reverse(track_speed_t s);

void track_reverse(track_speed_t s);

void track_stop(void);

void track_turn_left(track_speed_t s);

int flag_left();

int flag_stop();


void track_turn_right(track_speed_t s);

void track_drive_test(void);

void track_reverse_test(void);

void track_turn_test(void);

#endif




